<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>单独收费标准管理</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
  <table class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
    <html:form action="singleChargeCriterion.do?method=updateSave" method="post" onsubmit="return checkForm();">
    <html:hidden property="id" value="${chargeCriterion.id}" />
    <tr>
      <td class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">修改单独收费标准</td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">收费项目:</td>
      <td width="773" bgcolor="#ffffff">
      &nbsp;<html:select property="chargeItemId" style="width:150px" value="${chargeCriterion.chargeItem.id }">
				<html:option value="0">请选择</html:option>
				<c:if test="${!empty chargeItemList}">
					<c:forEach items="${chargeItemList}" var="item">
						<html:option value="${item.id}">${item.name}</html:option>
					</c:forEach>
				</c:if>
			</html:select><font color="red">${chargeItemError }</font>
	  </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">房产编号:</td>
      <td width="773" bgcolor="#ffffff">
      &nbsp;<html:text property="houseId" value="${chargeCriterion.house.houseId}"/><font color="red">${houseTypeError }</font>
	  </td>
    </tr>
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">金额:</td>
      <td width="773" bgcolor="#ffffff">&nbsp;<html:text property="amount" value="${chargeCriterion.amount}"/><font color="red">${amountError }</font></td>
    </tr>
        <tr>
      <td height="26" colspan="2" align="center" bgcolor="#ffffff"><html:submit value="修改" /></td>
      </tr>
    </html:form>
  </table>
</body>
</html>